<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            控制台
            <small>控制面板</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">活动管理</li>
            <li class="active">{$name}</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title">活动列表</h3>
                <a href="{:url('/admin/activity/add')}" class="btn  btn-primary pull-right">添加活动</a>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                <table class="table table-bordered center"><tbody>
                <tr>
                    <th style="width: 50px;">
                        <label for="checkall" class="btn btn-default">
                            <input type="checkbox" value="" id="checkall" class="pointer">
                            全选
                        </label>
                    </th>
                    <th>标题</th>
                    <th>缩略图</th>
                    <th>发布时间</th>
                    <th style="width: 100px;text-align: center">操作</th>
                </tr>
                <?php foreach($activity as $item){?>
                <tr>
                    <td class="check">
                        <label class="lb">
                            <input type="checkbox" class="cbox"  value="" name="idarr[]">
                        </label>
                    </td>
                    <td><?php echo $item['title']; ?></td>
                    <td>

                    </td>
                    <td><?php echo date("Y-m-d H:i",$item['pubtime']); ?></td>
                    <td >
                        <a href="#" class="btn btn-info btn-flat"><i class="fa fa-edit"></i></a>
                        <a href="#" class="btn btn-danger btn-flat"><i class="fa fa-trash-o"></i></a>
                    </td>
                </tr>
                <?php } ?>
                </tbody></table>
            </div>
            <!-- /.box-body -->
            <div class="box-footer clearfix">
                <ul class="pagination pagination-sm no-margin pull-right">
                    <li><a href="#">«</a></li>
                    <li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">»</a></li>
                </ul>
            </div>
        </div>
    </section>
    <!-- /.content -->
</div>